Skip to content

feat(storage): centralize hawk data paths and storage policy cleanup - #65

Merged
Patel230 merged 3 commits into
mainfrom
feat/storage-policy-cleanup
Jun 20, 2026
Merged

feat(storage): centralize hawk data paths and storage policy cleanup#65
Patel230 merged 3 commits into
mainfrom
feat/storage-policy-cleanup

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

  • Add internal/storage helpers with policy tests for hawk data layout.
  • Route session, plugin, sandbox, and cmd paths through the shared storage policy.
  • Fix lefthook lint to run package-wide instead of cross-directory staged files.

Test plan

  • make lint
  • pre-push hook: go test ./..., go vet, govulncheck
  • CI green on this PR

Made with Cursor

Patel230 added 3 commits June 20, 2026 10:36
Introduce internal/storage helpers with policy tests, route session and
plugin persistence through the shared layout, and trim duplicated path
handling across cmd and internal packages.
Tests that only set HOME were reading real CI state after the storage
policy refactor. Route them through HAWK_* dir overrides and bump eyrie.
Add testutil.IsolateStorage and route history, config, engine, and
analytics tests through HAWK_* overrides so shuffled CI runs do not read
shared runner state.
@Patel230
Patel230 merged commit bf7bf63 into main Jun 20, 2026
18 checks passed
@Patel230
Patel230 deleted the feat/storage-policy-cleanup branch June 20, 2026 06:10
Patel230 added a commit that referenced this pull request Jul 11, 2026
…65)

* feat(storage): add storage policy cleanup and centralize hawk data paths

Introduce internal/storage helpers with policy tests, route session and
plugin persistence through the shared layout, and trim duplicated path
handling across cmd and internal packages.

* fix(test): isolate storage dirs in race-sensitive tests

Tests that only set HOME were reading real CI state after the storage
policy refactor. Route them through HAWK_* dir overrides and bump eyrie.

* fix(test): isolate Hawk storage dirs across CI race tests

Add testutil.IsolateStorage and route history, config, engine, and
analytics tests through HAWK_* overrides so shuffled CI runs do not read
shared runner state.
Patel230 added a commit that referenced this pull request Jul 16, 2026
…65)

* feat(storage): add storage policy cleanup and centralize hawk data paths

Introduce internal/storage helpers with policy tests, route session and
plugin persistence through the shared layout, and trim duplicated path
handling across cmd and internal packages.

* fix(test): isolate storage dirs in race-sensitive tests

Tests that only set HOME were reading real CI state after the storage
policy refactor. Route them through HAWK_* dir overrides and bump eyrie.

* fix(test): isolate Hawk storage dirs across CI race tests

Add testutil.IsolateStorage and route history, config, engine, and
analytics tests through HAWK_* overrides so shuffled CI runs do not read
shared runner state.
Patel230 added a commit that referenced this pull request Aug 12, 2026
Bump external/tok, external/yaad, and external/trace to their merged
main heads (tok #79, yaad #45, trace #65)
Patel230 added a commit that referenced this pull request Aug 12, 2026
tok v0.1.5-0.20260812042126-622cafb3bd1b (PR #79)
yaad v0.2.1-0.20260812042155-884c6c81c3bf (PR #45)
trace v0.1.4-0.20260812042155-a31e98c7d75b (PR #65)
Patel230 added a commit that referenced this pull request Aug 12, 2026
* fix(engine): harden compaction edge cases and snapshot safety

- compact: guard non-consumable tool-result heads, pull full head text, fix
  second-half rune/byte accounting, conditional ack after compaction
- ApplyCompaction: snapshot-based API so callers mutate state safely
- registry: take lock before snapshot; cap batch summary at 32k
- ShouldAutoCompact: count tokens via tokenizer, exact truncation fallback
- drop dead engine harness branch and compact_api_engine.go; nil ChatLLM guards
- regression tests for every fix

* chore: update tok, yaad, trace submodules

Bump external/tok, external/yaad, and external/trace to their merged
main heads (tok #79, yaad #45, trace #65)

* chore: bump tok, yaad, trace module pins to merged main

tok v0.1.5-0.20260812042126-622cafb3bd1b (PR #79)
yaad v0.2.1-0.20260812042155-884c6c81c3bf (PR #45)
trace v0.1.4-0.20260812042155-a31e98c7d75b (PR #65)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant